package com.leyou.user.entity;

import io.lettuce.core.dynamic.annotation.Key;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @package com.leyou.user.entity
 * @description: 数据库表地址
 * @author: 许超越
 * @date 2019/7/13 15:08
 * @version: V1.0
 */
@Data
@Table(name = "tb_address")
public class Address {

    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;
    private Long userId;
    private String addressee;// 收件人姓名
    private String phone;// 电话
    private String province;// 省份
    private String city;// 城市
    private String district;// 区
    private String street;// 街道地址
    private String  zipCode;// 邮编
    private Boolean isDefault; //默认地址
    private Date createTime; //创建时间
    private Date updateTime; //更新时间
}
